#ifndef HOMME_H
#define HOMME_H

#include <QString>
#include <QDate>
#include <QObject>
#include <QFile>
#include <QDebug>
#include <memory>
#include <QTextCodec>
#include <QList>
#include <math.h>

class Homme
{
public:

    QString FIO = "";
    QDate minData;
    QDate maxData;


    Homme();
    Homme(QString FIO, QDate &minData, QDate &maxData);
};


class HommeWin : public QObject
{
    Q_OBJECT

private:
    QList<Homme*> _spisokKl;
    struct DayNow{
        int max;
        int min;
        int maxP;
        int minP;
    };
    struct DayNowVsp{
        int YNow;
        int YNowP;
    };

public:
    Homme* homme1 = nullptr;
    Homme* homme2 = nullptr;

    HommeWin();
    HommeWin(Homme* hhomme1, Homme* hhomme2);
    ~HommeWin();

    int ZapolnenieNow(QDate now);
    int ReadHomme(QString pathF);
signals:
    void signalViewD(QVariant, QVariant, QVariant);
};

#endif // HOMME_H
